package com.eric.rabbitmq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author chenw-i
 * @version 1.0.0
 * @ClassName RabbitConfig.java
 * @Description TODO
 * @createTime 2020年07月29日 15:40:00
 */
@Configuration
public class RabbitSimpleConfig {
    public static final String QUEUE_HELLO="QUEUE_HELLO";
    public static final String QUEUE_OBJECT="QUEUE_OBJECT";

    @Bean
    public Queue Queue() {
        return new Queue(QUEUE_HELLO);
    }
    @Bean
    public Queue QueueObj() {
        return new Queue(QUEUE_OBJECT);
    }
}
